using UnityEngine;

public class Enemy_AutoShotSample : Enemy
{
    float time = 0;
    public float shotTime = 3;
    protected override void OnProcess()
    {
        base.OnProcess();
        time += processTime * baseAttribute.attackspeed.value;
        Vector2 t = ToPlayer();
        if(targetPlayer && time > shotTime){
            time = 0;
            Bullet.CreatBullet(this, t).SetDamage(this);
        }
    }
}
